//获取token信息
export const getToken = key => {
  return window.localStorage.getItem(key);
};
//设置token信息
export const saveToken = (key, token) => {
  window.localStorage.setItem(key, token);
};
//删除token信息
export const destroyToken = key => {
  window.localStorage.removeItem(key);
};
export default { getToken, saveToken, destroyToken };
